<template>
  <div>
    <h2>水印</h2>
    <div ref="box" class="dv" style="width: ;height: 100vh;"></div>
  </div>
</template>

<script lang="ts" setup>
import {ref,onMounted} from 'vue'

import watermark from '../utils/waterMark'
// console.log(watermark)

let box = ref()

onMounted(() => {
//  console.log(box.value)
  watermark.set('水印文字',box.value)
})


</script>

<style lang="scss" scoped>

</style>